package cn.wei.sdd.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author Wei
 * @since 2021-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="User对象", description="用户信息表")
public class User implements Serializable {


    private static final long serialVersionUID = 1L;
    //用户类型
    public static final long Recycler = 1L;
    public static final long USER = 2L;

    //用户状态
    public static final Integer STATUS_NORMAL = 1;
    public static final Integer STATUS_LOCKED = 0;

    public static final String USER_AVATAR = "https://srb-file-2021-7-8.oss-cn-beijing.aliyuncs.com/avatar/img-01.png";

    @ApiModelProperty(value = "userId")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "用户类别：1：回收员 2：普通用户")
    private Integer userType;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "累计回收重量")
    private Double recoveryWeight;


    @ApiModelProperty(value = "回收次数")
    private Integer recoveryNumber;

    @ApiModelProperty(value = "回收员提成率")
    private BigDecimal percent;


    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "头像")
    private String headImg;

    @ApiModelProperty(value = "微信用户标识openid")
    private String openid;

    @ApiModelProperty(value = "状态（0：锁定 1：正常）")
    private Integer status;


    @ApiModelProperty(value = "回收员审核状态（0：未审核 1：已审核）")
    private Integer examineStatus;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
